<?php 
/**
 * UCConfMIS.php MIS配置文件
 * @author 徐鹏程 <xupengcheng@snda.com> 2010-03-26
 * Copyright (c) 2010 sdo.com - Web Development Center
 */

class UCConfMIS {
	static public function getServers() {
		$servers = array();	
		if (defined('__UC_ENV') && __UC_ENV == 'DEV') {
			$servers []= array("10.129.128.16", 12321);
		} else if (defined('__UC_ENV') && __UC_ENV == 'TEST') {
			$servers []= array("10.10.85.5", 12321);
			$servers []= array("10.10.85.5", 12322);
			$servers []= array("10.10.85.5", 12323);
		} else {
			$servers []= array("10.150.10.43", 12321);
			$servers []= array("10.150.10.44", 12321);
			$servers []= array("10.150.10.45", 12321);
		}
		return $servers;
	}
	
	static public function getDBConfig()
	{
		if( defined('__UC_ENV') && __UC_ENV == 'DEV')
		{
			$host = '10.129.128.14';
			$port = 3306;
			$username = 'root';
			$password = '123qwe';
			$database = 'd_mis';
		}
		else if( defined('__UC_ENV') && __UC_ENV == 'TEST')
		{
			$host = '10.10.85.4';
			$port = 8066;
			$username = 'ucdbuser';
			$password = 'sdf2w@!w';
			$database = 'd_mis';
		}
		else
		{
			$host = '10.150.9.5';
			$port = 8066;
			$username = 'ucdbuser';
			$password = '(qnO-ps:Oi^0F0';
			$database = 'd_mis';
		}
		
		return array(
			'driver' => 'mysql',
			'host' => $host,
			'port' => $port,
			'username' => $username,
			'password' => $password,
			'database' => $database,
		);
	}

}

?>